<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘商品详情(键盘敲难,月薪过o.o8亿)</title>
    <!-- 引入font文件 -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <!-- 引入mui样式 -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="./css/common.css">
    <!-- 首页样式 -->
    <link rel="stylesheet" href="./css/product.css">
</head>

<body>
    <!-- 头部 -->
    <!-- mui-action-back 类 可以实现返回上一页  -->
    <header id="lt_header" class="mui-bar mui-bar-nav">
        <h1 class="mui-title">商品详情</h1>
        <!-- <a class="fa fa-search mui-pull-right"></a> -->
        <a href="javascript:;" class="mui-action-back fa fa-arrow-left h-left"></a>
        <a href="javascript:;" class="mui-action-back fa fa-home h-right"></a>
    </header>

    <!-- 内容 -->
    <div class="lt_view">
     <div class="lt_content">
       
      </div>
    </div>


    <!-- 尾部 -->
    <div class="footer_tool">
       <span class="fa fa-cart-plus"></span>
       <a class="add_cart" href="javascript:;">加入购物车</a>
       <a class="buy_now" href="javascript:;">立即购买</a>
    </div>


</body>
<!-- mui.js 不依赖其他 -->
<script src="./assets/mui/js/mui.js"></script>
<!-- 方便我们自己开发 zepto -->
<script src="./assets/zepto/zepto.js"></script>
<!-- 公共的js -->
<script src="./js/common.js"></script>
<!-- 自己的js index.js -->
<script src="./js/product.js"></script>
<!-- 引入模板文件 -->
<script src="./assets/arttemplate/template-web.js"></script>

<!-- 模板 -->
<script type="text/template" id="mainTpl"> 

        <!-- 轮播图 -->
        <div class="mui-slider">
        <div class="mui-slider-group mui-slider-loop">
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[pic.length-1].picAddr}}" /></a></div>
            {{each pic value index}}
            <div class="mui-slider-item"><a href="#"><img src="{{value.picAddr}}" /></a></div>
            {{/each}}
            <!--支持循环，需要重复图片节点-->
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[0].picAddr}}" /></a></div>
        </div>
        <!-- 索引器 -->
        <div class="mui-slider-indicator">
            {{each pic value index}}
            {{if index==0}}
            <div class="mui-indicator mui-active"></div>
            {{/if}}
            {{if index!= 0}}
            <div class="mui-indicator"></div>
            {{/if}}
            {{/each}}
        </div>
        </div>

        <!-- 商品名字 -->
        <div class="goods_name">
            {{proName}}                
        </div>
        <!-- 商品价格 -->
        <div class="goods_price">
            价格: 
            <span class="price">¥{{price}} </span>
            <del>¥{{oldPrice}}</del>
        </div>
        <!-- 商品尺码 -->
        <div class="goods_size">
            尺码: 
          {{each sizeArr value index}}
            <span class="size_btn">{{value}}</span>
            {{/each}}
           
        </div>
        <!-- 商品数量 -->
        <div class="goods_num">
            数量:
            <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1' data-numbox-max='100'>
                <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                <input class="mui-numbox-input num_val" type="number" />
                <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
            </div>
            剩余 : {{num}}件
        </div>
</script>

</html>